
[%
metamodel http://www.eclipse.org/uml2/2.0.0/UML

import org.acceleo.modules.uml2.services.Uml2Services
import org.acceleo.modules.uml2.services.StringServices
%]

[%-- 
This template generate web.xml configuration file
--%]

[%script type="Model" name="generate" file="mesBalises.tld"%]
<?xml version="1.0" encoding="ISO-8859-1"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
	version="2.0">
	<display-name>Balise a vianney</display-name>
	<tlib-version>1.0</tlib-version>
	<short-name>via</short-name>
	<uri>http://vianney.dubus.free.fr/taglib/</uri>
	<tag>
		<name>EntityFormTag</name>
		<tag-class>org.taam.test.taglib.EntityFormTag</tag-class>
		<body-content>JSP</body-content>
		<attribute>
			<description>Entity name to display its form.</description>
			<name>entityName</name>
			<required>yes</required>
		</attribute>	
	</tag>
	[%for (eAllContents("Class")){%]
		[%if (hasStereotype("Entity")){%]
	<tag>
		<name>[%name%]ViewTag</name>
		<tag-class>org.taam.test.taglib.[%name%]ViewTag</tag-class>
		<body-content>JSP</body-content>		
	</tag>	
	[%}else if (hasStereotype("JstlTag")){%]		
	<tag>
		<name>[%name%]Balise</name>
		<tag-class>org.taam.test.taglib.[%name%]Tag</tag-class>
		<body-content>JSP</body-content>
		[%for (attribute){%]
		<attribute>
			<!-- [%startUserCode%] -->
			<name>[%name%]</name>
			<required>yes</required>
			<rtexprvalue>true</rtexprvalue>
			<!-- [%endUserCode%] -->
		</attribute>
		[%}%]
	</tag>
		[%}%]
	[%}%]
</taglib>